package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    /**
     * 新建员工
     * @param employeeDTO
     * @return
     */
    void addEmp(EmployeeDTO employeeDTO);


    PageResult queryAllEmps(EmployeePageQueryDTO employeePageQueryDTO);

    void setEmpState(Long id, Integer status);


    void updateEmp(EmployeeDTO employeeDTO);

    Employee getEmpById(Long id);

    void updateEmpPwd(PasswordEditDTO passwordEditDTO);
}
